from django.contrib import admin
from django.urls import path
from doctor.views import TitleView, MajorView, DepartmentView, SubMajorView, DoctorView, RemoteConsultationView, \
    StatusView, GetRemoteConsultationModelView1, RemoteConsultationModelView1, upload, GetDoctor,dorag,dofabu

from rest_framework.routers import SimpleRouter

urlpatterns = [
    # path('admin/', admin.site.urls),
    # path('register/', Register.as_view()),
    # path('user/', UserView.as_view()),
    path('get_remote_consultation_model/', GetRemoteConsultationModelView1.as_view()),
    path('getDoctor/',GetDoctor.as_view()),
    path('son/upload',upload.as_view()),
    path('dorag/',dorag.as_view()),
    path('dofabu/',dofabu.as_view()),
]

router = SimpleRouter()
router.register("title", TitleView)
router.register("major", MajorView)
router.register("department", DepartmentView)
router.register("submajor", SubMajorView)
router.register("doctor", DoctorView)
router.register("remoteconsultation", RemoteConsultationView)
router.register("remoteconsultation1", RemoteConsultationModelView1)
router.register("status", StatusView)

urlpatterns += router.urls
